﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:Detail="clr-namespace:Patterns4Net.ArchitectureExplorer.ViewModels.Detail">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary>
            <DataTemplate DataType="{x:Type Detail:DiagramDetailViewModel}" >
                <StackPanel Margin="0, 10, 0, 0">
                    <StackPanel Orientation="Horizontal">
                        <Image Source=".\..\..\Image\LegoIcon.png" Width="64" Height="64" Margin="0, 0, 7, 0"/>
                        <TextBlock FontSize="14" TextWrapping="Wrap">Top Level View</TextBlock>
                    </StackPanel>                    
                    <Separator/>

                    <TextBlock Margin="10, 0, 0, 0">Layers:</TextBlock>
                    <ItemsControl ItemsSource="{Binding Layers}" Margin="25, 15, 0, 0">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <Image Source=".\..\..\Image\Layer.png" Width="16" Height="16" Margin="0, 0, 7, 0"/>
                                    <TextBlock FontSize="14" Text="{Binding .}"/>
                                </StackPanel>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </StackPanel>
            </DataTemplate>
        </ResourceDictionary>
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
